package com.ibeeking.found.file.service.common.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("uploadtaskdetail")
public class UploadTaskDetailDO implements Serializable {
    private static final long serialVersionUID = -1L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long detailId;

    /**
     * 文件路径
     */
    @TableField(value = "file_path")
    private String filePath;

    /**
     * 文件名称
     */
    @TableField(value = "file_name")
    private String filename;

    /**
     * 当前分片数
     */
    @TableField(value = "chunk_number")
    private int chunkNumber;

    /**
     * 当前分片大小
     */
    @TableField(value = "chunk_size")
    private Integer chunkSize;

    /**
     * 文件相对路径
     */
    @TableField(value = "relative_path")
    private String relativePath;

    /**
     * 文件总分片数
     */
    @TableField(value = "total_chunks")
    private Integer totalChunks;

    /**
     * 文件总大小
     */
    @TableField(value = "total_size")
    private Integer totalSize;

    /**
     * 文件md5唯一标识
     */
    @TableField(value = "identifier")
    private String identifier;
}
